package transaction.imp;

import dao.PayrollDatabase;
import dao.imp.GpayrollDatabase;
import transaction.Transaction;

public class DeleteEmployeeTransaction implements Transaction {
    private int empid;
    private PayrollDatabase payrollDatabase = new GpayrollDatabase();
    public DeleteEmployeeTransaction(int empid) {
        this.empid = empid;
    }

    @Override
    public void execute() {
        payrollDatabase.deleteEmployeeById(empid);
    }
}
